import java.util.Calendar;


public class StructAttendanceInfo {

	private int attendanceID;	//primary key
	private int idNo;
	private int eventID;
	private String eventName;
	private Calendar date;
	
	
	
	public StructAttendanceInfo(int attendanceID, int idNo, int eventID) {
		super();
		this.attendanceID = attendanceID;
		this.idNo = idNo;
		this.eventID = eventID;
	}

	public StructAttendanceInfo(int attendanceID, int idNo, int eventID, String eventName, String date) {
		super();
		this.attendanceID = attendanceID;
		this.idNo = idNo;
		this.eventID = eventID;
		this.eventName = eventName;
		this.date.set(Integer.parseInt(date.substring(0, 4)), Integer.parseInt(date.substring(4, 6)), Integer.parseInt(date.substring(6, 8)));
		
	}
	
	public int getAttendanceID() {
		return attendanceID;
	}

	public Calendar getDate() {
		return date;
	}
	public void setDate(Calendar date) {
		this.date = date;
	}
	public int getIdNo() {
		return idNo;
	}
	public int getEventID() {
		return eventID;
	}

	public String getEventName() {
		return eventName;
	}
	
	
	
}
